//package com.mn.sso.starter.config;
//
//import com.smart.sso.client.listener.LogoutListener;
//import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
//import org.springframework.boot.web.servlet.ServletListenerRegistrationBean;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//import javax.servlet.http.HttpSessionListener;
//
///**
// * @author liutao
// * @date 2022年01月15日 17:31
// */
//@ConditionalOnProperty(prefix = "sso.session.local",name = "enable",havingValue = "true")
//@Configuration
//public class LocalLogoutConfig {
//    /**
//     * 单实例方式注册单点登出Listener
//     *
//     * @return
//     */
//    @Bean
//    public ServletListenerRegistrationBean<HttpSessionListener> LogoutListener() {
//        ServletListenerRegistrationBean<HttpSessionListener> listenerRegBean = new ServletListenerRegistrationBean<>();
//        LogoutListener logoutListener = new LogoutListener();
//        listenerRegBean.setListener(logoutListener);
//        return listenerRegBean;
//    }
//}
